package com.snl.micro.blog.common.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArticleVo {
    private Long id;
    private Long userId;
    private String title;
    /**
     * 该文章属于的主题
     */
    private Integer themeCode;
    private String description;
    private String message;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS",timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:SS",timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 该文章的标签
     */
    private List<TagVo> tags;

    /**
     * 当前文章的发布用户
     */
    private UserVo userVo;

    /**
     * 喜欢这篇文章的人
     */
    private Integer likes;
    /**
     * 踩这篇文章的人
     */
    private Integer hates;

    /**
     * 这篇文章的评论
     */
    private List<CommentVo> comments;
}
